<div style="
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
      'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
  ">
  <!-- 目录部分 -->
  <div style="
      margin: 10px auto;
      padding: 10px 15px;
      border-left: 3px solid #999;
      background-color: #f8f8f8;
      font-size: 13px;
      color: #666;
    ">
    <p style="
        font-size: 14px;
        font-weight: bold;
        color: #666;
        margin-bottom: 8px;
        padding-left: 5px;
      ">
      目录
    </p>
    <% for(var i=0; i<articles.length; i++) { var article=articles[i]; var bgColor=i % 2===0 ? '#f8f8f8' : '#f2f2f2' ;
      %>
      <p style="margin: 3px 0; padding: 4px 8px; background-color: <%= bgColor %>;">
        <span style="color: #999; font-weight: 500; margin-right: 5px; font-size: 12px;">
          <%= i + 1 %>.
        </span>
        <span style="color: #666; font-size: 12px;">
          <%= article.title %>
        </span>
      </p>
      <% } %>
  </div>

  <!-- 文章内容部分 -->
  <% for(var j=0; j<articles.length; j++) { var article=articles[j]; %>
    <div style="margin: 30px 0; padding: 0 10px;">
      <h3
        style="font-size: 18px; color: #333; margin-bottom: 15px; border-bottom: 2px solid #07c160; padding-bottom: 10px;">
        <span style="color: #07c160; margin-right: 10px;">
          <%= j + 1 %>.
        </span>
        <%= article.title %>
      </h3>
      <p style="font-size: 12px; color: #999; margin: 10px 0;">
        <%= article.publishDate %>
      </p>
      <div style="font-size: 15px; color: #333; line-height: 1.8; margin: 20px 0;">
        <% var content=article.content || "" ; var paragraphs=content.split("<next_paragraph />");
        %>
        <% for(var i=0; i<paragraphs.length; i++) { var para=paragraphs[i].trim(); if(para.length> 0) {
          %>
          <p style="margin: 15px 0;"><%- para %></p>
          <% }} %>
      </div>
    </div>
    <% } %>
</div>